#include <bits/stdc++.h>
using namespace std;

class Solution
{
public:
    int main()
    {
        int n;
        cin >> n;
        int num = 1;
        for (int line = 0; line < n; ++line)
        {
            for (int i = 0; i < n - line; ++i)
            {
                cout << setfill('0') << setw(2) << num;
                ++num;
            }
            cout << endl;
        }
        return 0;
    }
};

#ifndef __LOCAL_TEST__
int main()
{
    return Solution().main();
}
#endif